package com.kjtpay.design_pattern.builder;

import android.util.Log;

class Person {
    private String head = "头";
    private String body = "身体";
    private String armLeft = "左手";
    private String armRight = "右手";
    private String legLeft = "左脚";
    private String legRight = "右脚";

    // set函数
    public void setHead(String head) {
        this.head = head;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public void setArmLeft(String armLeft) {
        this.armLeft = armLeft;
    }

    public void setArmRight(String armRight) {
        this.armRight = armRight;
    }

    public void setLegLeft(String legLeft) {
        this.legLeft = legLeft;
    }

    public void setLegRight(String legRight) {
        this.legRight = legRight;
    }

    // 展示
    public String show() {
        String info = head + "\n"
                + body + "\n"
                + armLeft + "\n"
                + armRight + "\n"
                + legLeft + "\n"
                + legRight + "\n";
        Log.v("Person", info);
        return info;
    }
}
